Skip to content

Conversation

@bobmyhill
Copy link
Member

@bobmyhill bobmyhill commented Oct 18, 2025

This pull request:

  • Adds a new constant logish_eps in burnman/constants.py as a mutable list holding a small epsilon value for numerical stability, and updates logish and inverseish functions in burnman/classes/solutionmodel.py to use this value
  • Modifies the equilibrate function in burnman/tools/equilibration.py to retry a nonlinear solve with a relaxed logish_eps if the solver hits the maximum iteration limit. The process chains up to three solves and combines their results.
  • Refactors the setup in equilibrate to use named functions for the system F, J and constraints.
  • Adds a new test that uses the new fallback routine.

@bobmyhill bobmyhill force-pushed the adaptive_logish_solve branch from 246aad3 to b2b68a6 Compare October 18, 2025 23:01
@bobmyhill bobmyhill merged commit 4ac4257 into geodynamics:main Oct 18, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant